package com.example.safeassistan.hiddendanger.model;

import java.util.List;

public class DepartMentAllModel {

    /**
     * success : true
     * message : 操作成功！
     * code : 0
     * result : [{"id":"0823013108024d53a770491895cfd284","name":"哈哈哈"},{"id":"1798c3ee4cd64c0aa8d54b9f408668c8","name":"测试医院"},{"id":"645aa6d29caa4aed9b88038b443fdc69","name":"生产部"},{"id":"87c17549523d41108c87bd03b128a761","name":"测试工厂"},{"id":"9a123c10f07f462ab03ffba8be4421f1","name":"厂房二"},{"id":"a26c3d6f9097457b924b7d8e1ec232ee","name":"测测测"},{"id":"ac888ec06ba2476ead34f41e9c08b719","name":"厂房二"},{"id":"bc9c651bed5c4e9ea8956b14d1332cde","name":"车间一"},{"id":"c65095a894c148b984e776e307a11222","name":"住院部"},{"id":"d4650b8fc1224307b9a04a685dc02426","name":"厂房一"},{"id":"d58cbba85b504d448c5e4597e61b9592","name":"测试"},{"id":"e71143b718204bef8ed3f45058183b04","name":"子测试"}]
     * timestamp : 1622276302280
     */

    private Boolean success;
    private String message;
    private Integer code;
    private Long timestamp;
    private List<ResultDTO> result;

    public Boolean isSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    public List<ResultDTO> getResult() {
        return result;
    }

    public void setResult(List<ResultDTO> result) {
        this.result = result;
    }

    public static class ResultDTO {
        /**
         * id : 0823013108024d53a770491895cfd284
         * name : 哈哈哈
         */

        private String id;
        private String name;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }
    }
}
